package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

@Data

@TableName("departments")
public class Department {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;
    @TableField("restaurant_id")
    private Integer restaurantId;
}